<style>
    body,.content{
        width: auto;
        background: none;
    }
    .table{
        border: 1px solid #e7e9f1;

    }
    .table th, .table td {
        display: table-cell;
        vertical-align: inherit;
        vertical-align: middle!important;
        border: 1px solid #e7e9f1;
    }

</style>
<div class="tab-pane " id="api">
    <div class="row">
        <div class="col-xs-12">
            <form  role="form" data-toggle="validator" method="POST" action="" autocomplete="off">
                <!--<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">-->
                <div class="form-group">
                    <input data-source="ajax/suppli" data-field="sname" data-primary-key="id"
                           class="form-control selectpage hidden  sp_input"  placeholder="请选择供应商" name="row[supplier]" type="text" value="" autocomplete="off">
                    <div class="row" style="margin-top:10px;">
                        <div class="col-xs-12">
                            <div class="col-xs-12 col-sm-12">
                                <table data-template="muban" data-index="1" data-name="muban"  style="" class=" table   table-nowrap" data-operate-edit="1" data-operate-del="1" width="100%">
                                    <thead>
                                    <tr>
                                        <td style="width:50px"></td>
                                        <td style="width:260px">商品名称</td>
                                        <td style="width:100px">商品编号</td>
                                        <td style="width:120px">商品分类</td>
                                        <td style="width:100px">数量</td>
                                        <td style="width:100px">单价</td>
                                        <td>小计</td>
                                        <td>操作</td>
                                    </tr>
                                    </thead>
                                    <tbody id="ultable"  data-listidx="1">

                                    </tbody>
                                    <thead>
                                    <tr><td colspan="4">合计：</td><td colspan="2" id="tj1">0</td><td colspan="2" id="tj2">0</td></tr>
                                    </thead>
                                    <tfooter>
                                        <tr><td colspan="8"><a href="javascript:;" class="btn btn-sm btn-success btn-append dsiabled"><i class="fa fa-plus"></i> 添加</a></td></td></tr>
                                    </tfooter>
                                </table>


                            </div>
                        </div>
                        <div class="col-xs-12">
                            <div class="col-xs-6">
                                <label>分公司名称</label>
                                <input type="text" name="output"  value="{$admin.department_text}" disabled class="form-control" placeholder="分公司名称" />
                            </div>
                            <div class="col-xs-6">
                                <label>制单人:</label>
                                <input type="text" name="template" disabled  value="{$admin.username}" class="form-control" placeholder="业务员名称" />
                            </div>
                        </div>
                        <div class="col-xs-12">
                            <div class="col-xs-6">
                                <label>{:__('Deliverydate')}:</label>
                                <input id="c-deliverydate" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" name="row[deliverydate]" type="text" >
                            </div>
                            <div class="col-xs-6">
                                <label>{:__('Githouse_id')}:</label>
                                <select name="row[githouse_id]" id=""  class="form-control">
                                    <option value="">请选择</option>
                                    {foreach name="$githouseList" item="value"}
                                    <option value="{$value.id}">{$value.lxr},{$value.mobile},{$value.province_text},{$value.city_text},{$value.area_text},{$value.address}</option>
                                    {/foreach}
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-12">
                            <div class="col-xs-6">
                                <label>备注:</label>
                                <textarea id="c-remark" class="form-control  form-control" rows="5" name="row[remark]" cols="50"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <hr>
                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
